<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('结项审核申请新增')"/>
</head>
<body class="pear-container" >
<script src="../pdfjs/build/pdf.js"></script>
<script src="../pdfjs/build/pdf.worker.js"></script>

    <input readonly   th:value="*{summaryReportUrl}" class="layui-input-inline layui-hide" style="display: none" id="uploadSummary" >
<!--    <div class="layui-card">-->
<!--        <div class="layui-card-body">-->
<!--            <div class="embed" style="width: 900px;height: 500px">-->
<!--                <embed src="C:\_Publish\社科联\123.pdf" type="application/pdf">-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
<iframe id="iframeid" width="x" height="y"></iframe>
<!--    <canvas id="the-canvas"></canvas>-->
</body>




<!--<script type="text/javascript">-->
<!--    pdfjsLib.GlobalWorkerOptions.workerSrc =-->
<!--        '../pdfjs/build/pdf.worker.js';-->
<!--    var loadingTask = pdfjsLib.getDocument({url: "C:\_Publish\社科联\123.pdf",});//  _url为后台请求pdf流的路径-->
<!--    loadingTask.promise.then(function(pdf) {-->
<!--        pdf.getPage(1).then(function(page) {-->
<!--            var scale = 1.5;-->
<!--            var viewport = page.getViewport(scale);-->
<!--            var canvas = document.getElementById('the-canvas');-->
<!--            var context = canvas.getContext('2d');-->
<!--            canvas.height = viewport.height;-->
<!--            canvas.width = viewport.width;-->
<!--            var renderContext = {-->
<!--                canvasContext: context,-->
<!--                viewport: viewport,-->
<!--            };-->
<!--            page.render(renderContext);-->
<!--        });-->
<!--    });-->

<!--</script>-->

<script>




</script>
<th:block th:include="include :: footer"/>
<script>

    layui.use(['form', 'laydate', 'upload', 'jquery', 'table', 'layedit'], function () {
        let form = layui.form;
        let $ = layui.jquery;
        let MODULE_PATH = rootPath + "/AuditFinishDanweiController";
        let table = layui.table;

        let FILE_PATH = rootPath + "/oss";
        let upload = layui.upload;
        let BucketName = '[[${BucketName}]]';
        var laydate = layui.laydate;
        var layedit = layui.layedit;

        let binaryData = [];
        binaryData.push("C:/_Publish/社科联/123.pdf");
        url = window.URL.createObjectURL(new Blob(binaryData));


        // var url =URL.createObjectURL("C:\\_Publish\\社科联\\123.pdf" );
        $('#iframeid').attr('src',url);

    })
</script>
</html>
